-
Notifications
You must be signed in to change notification settings - Fork 47
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
#1604 Added property config to hide Alerts tab and message count on tab names #1605
Conversation
@@ -51,6 +51,7 @@ class EditorForm extends React.Component { | |||
this.state = { | |||
showFieldPicker: false | |||
}; | |||
this.showAlertsTab = props.controller ? get(props.controller.getPropertiesConfig(), "showAlertsTab", true) : true; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why not pass this down from properties-main instead? Similar to what we do with
rightFlyout={this.props.propertiesConfig.rightFlyout}
…unt on tab names Signed-off-by: Neha Gokhale <[email protected]>
Signed-off-by: Neha Gokhale <[email protected]>
94a8273
to
aec9365
Compare
@@ -517,6 +517,7 @@ class PropertiesMain extends React.Component { | |||
customPanels={this.props.customPanels} | |||
rightFlyout={this.props.propertiesConfig.rightFlyout} | |||
categoryView={this.props.propertiesConfig.categoryView} | |||
showAlertsTab={(typeof this.props.propertiesConfig.showAlertsTab !== "undefined") ? this.props.propertiesConfig.showAlertsTab : true} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Instead of doing this check couldn't we do
showAlertsTab={ this.props.propertiesConfig.showAlertsTab !== false }
The in all cases besides false
this would be true.
Signed-off-by: Neha Gokhale <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
Fixes #1604
Added a new config option
showAlertsTab (boolean)
in propertiesConfig object. Default: true.To test in harness -
Developer's Certificate of Origin 1.1